package com.zhijian.medical.service;

import com.zhijian.medical.entity.po.PersonPhysicalExaminationArchives;
import com.zhijian.medical.entity.vo.request.PersonPhysicalExaminationArchivesSearchVo;
import com.zhijian.medical.entity.vo.response.PersonPhysicalExaminationArchivesResultVo;
import com.zhijian.medical.entity.vo.response.PersonPhysicalExaminationArchivesVo;
import com.zhijian.medical.util.Page;

import java.util.List;

/**
 * 人员-体检档案卡 业务处理层
 *
 * @author HCG
 * @version 1.0
 * @date 2022-03-25 16:44:11
 */
public interface PersonPhysicalExaminationArchivesService {

    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    PersonPhysicalExaminationArchives selectById(Long id);

    /**
     * 主键查询vo
     *
     * @param id
     * @return
     */
    PersonPhysicalExaminationArchivesVo selectVoById(Long id);

    /**
     * 按照主键删除
     *
     * @param id
     */
    void deleteById(Long id);

    /**
     * 新增
     *
     * @param personPhysicalExaminationArchives
     * @return
     */
    Long insert(PersonPhysicalExaminationArchives personPhysicalExaminationArchives);

    /**
     * 更改
     *
     * @param personPhysicalExaminationArchives
     * @return
     */
    boolean update(PersonPhysicalExaminationArchives personPhysicalExaminationArchives);

    /**
     * 总数
     *
     * @param personPhysicalExaminationArchivesSearchVo
     * @return
     */
    Integer count(PersonPhysicalExaminationArchivesSearchVo personPhysicalExaminationArchivesSearchVo);

    /**
     * 列表
     *
     * @param personPhysicalExaminationArchivesSearchVo
     * @return
     */
    List<PersonPhysicalExaminationArchivesVo> selectList(PersonPhysicalExaminationArchivesSearchVo personPhysicalExaminationArchivesSearchVo);

    /**
     * 分页查询
     *
     * @param personPhysicalExaminationArchivesSearchVo
     * @return
     */
    Page<PersonPhysicalExaminationArchivesVo> selectPage(PersonPhysicalExaminationArchivesSearchVo personPhysicalExaminationArchivesSearchVo);

    /**
     * 获取带姓名、性别的分页数据
     *
     * @param personPhysicalExaminationArchivesSearchVo
     * @return
     */
    PersonPhysicalExaminationArchivesResultVo selectPersonPhysicalExaminationArchivesResultVo(PersonPhysicalExaminationArchivesSearchVo personPhysicalExaminationArchivesSearchVo);
}